package com.ims.core.bas.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.bas.mapper.BasShopMapper;
import com.ims.core.bas.domain.BasShop;
import com.ims.core.bas.service.IBasShopService;

/**
 * 店铺Service业务层处理
 *
 * @author IMS
 * @date 2024-03-19
 */
@Service
public class BasShopServiceImpl implements IBasShopService
{
    @Autowired
    private BasShopMapper basShopMapper;

    /**
     * 查询店铺
     *
     * @param shopid 店铺主键
     * @return 店铺
     */
    @Override
    public BasShop selectBasShopByShopid(Long shopid)
    {
        return basShopMapper.selectBasShopByShopid(shopid);
    }

    /**
     * 查询店铺列表
     *
     * @param basShop 店铺
     * @return 店铺
     */
    @Override
    public List<BasShop> selectBasShopList(BasShop basShop)
    {
        return basShopMapper.selectBasShopList(basShop);
    }

    /**
     * 新增店铺
     *
     * @param basShop 店铺
     * @return 结果
     */
    @Override
    public int insertBasShop(BasShop basShop)
    {
        return basShopMapper.insertBasShop(basShop);
    }

    /**
     * 修改店铺
     *
     * @param basShop 店铺
     * @return 结果
     */
    @Override
    public int updateBasShop(BasShop basShop)
    {
        return basShopMapper.updateBasShop(basShop);
    }

    /**
     * 批量删除店铺
     *
     * @param shopids 需要删除的店铺主键
     * @return 结果
     */
    @Override
    public int deleteBasShopByShopids(Long[] shopids)
    {
        return basShopMapper.deleteBasShopByShopids(shopids);
    }

    /**
     * 删除店铺信息
     *
     * @param shopid 店铺主键
     * @return 结果
     */
    @Override
    public int deleteBasShopByShopid(Long shopid)
    {
        return basShopMapper.deleteBasShopByShopid(shopid);
    }
}
